package com.hmc.modules.material.service.tqmtowm.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.hmc.common.service.impl.CrudServiceImpl;
import com.hmc.common.constant.Constant;
import com.hmc.modules.material.dao.tqmtowm.TqmtowmDao;
import com.hmc.modules.material.dto.tqmtowm.TqmtowmDTO;
import com.hmc.modules.material.entity.tqmtowm.TqmtowmEntity;
import com.hmc.modules.material.service.tqmtowm.TqmtowmService;
import com.hmc.modules.security.user.SecurityUser;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 订单检化验标准_拉伸屈服应力
 *
 * @author hmc wengxiulinluman@qq.com
 * @since 3.0 2023-11-29
 */
@Service
public class TqmtowmServiceImpl extends CrudServiceImpl<TqmtowmDao, TqmtowmEntity, TqmtowmDTO> implements TqmtowmService {

    @Override
    public QueryWrapper<TqmtowmEntity> getWrapper(Map<String, Object> params){
        QueryWrapper<TqmtowmEntity> wrapper = new QueryWrapper<>();

        String id = (String)params.get("id");
        wrapper.eq(StringUtils.isNotBlank(id), "ID", id);

        return wrapper;
    }


}